class InitDataModel {
  InitDataModel({
     this.isLogin = 0,
     this.isOpenVideo = 0,
     this.version = "",
     this.logo = "",
     this.title = "",
     this.subtitle ="",
     this.isOpenAb =0,
     this.submitPage = 0,
     this.jumpXcx = 0,
     this.viewList = 0,
     this.openQuestion = 0,
     this.openQuestionBao = 0,
     this.icpRecord = "",
     this.slogan = "",
     this.isLink = 0
    ,
     this.isXcx = 1,
     this.isChat =1,
     this.xcxId ="",
     this.openChat ="",
     this.jumpScan = 0,
     this.havePartnerOpen = 1,
     this.partnerDescribe = "",
     this.partner = "",
     this.applicationDescriptions = "",
     this.channelText,
     this.launchPage,
     this.video,
  });
  late  int isLogin;
  late  int isOpenVideo;
  late  String version;
  late  String logo;
  late  String title;
  late  String subtitle;
  late  int isOpenAb;
  late  int submitPage;
  late  int jumpXcx;
  late  int viewList;
  late  int openQuestion;
  late  int openQuestionBao;
  late  String icpRecord;
  late  String slogan;
  late  int isLink;
  late  int isXcx;
  late  int isChat;
  late  String xcxId;
  late  String openChat;
  late  int jumpScan;
  late  int havePartnerOpen;
  late  String partnerDescribe;
  late  String partner;
  late  String applicationDescriptions;
  late  ChannelText? channelText;
  late  List<dynamic>? launchPage;
  late  Video? video;

  InitDataModel.fromJson(Map<String, dynamic> json){
    isLogin = json['is_login'];
    isOpenVideo = json['is_open_video'];
    version = json['version'];
    logo = json['logo'];
    title = json['title'];
    subtitle = json['subtitle'];
    isOpenAb = json['is_open_ab'];
    submitPage = json['submit_page'];
    jumpXcx = json['jump_xcx'];
    viewList = json['view_list'];
    openQuestion = json['open_question'];
    openQuestionBao = json['open_question_bao'];
    icpRecord = json['icp_record'];
    slogan = json['slogan'];
    isLink = json['is_link'];
    isXcx = json['is_xcx'];
    isChat = json['is_chat'];
    xcxId = json['xcx_id'];
    openChat = json['open_chat'];
    jumpScan = json['jump_scan'];
    havePartnerOpen = json['have_partner_open'];
    partnerDescribe = json['partner_describe'];
    partner = json['partner'];
    applicationDescriptions = json['application_descriptions'];
    channelText = ChannelText.fromJson(json['channel_text']);
    launchPage = List.castFrom<dynamic, dynamic>(json['launch_page']);
    video = Video.fromJson(json['video']);
  }

  Map<String, dynamic> toJson() {
    final _data = <String, dynamic>{};
    _data['is_login'] = isLogin;
    _data['is_open_video'] = isOpenVideo;
    _data['version'] = version;
    _data['logo'] = logo;
    _data['title'] = title;
    _data['subtitle'] = subtitle;
    _data['is_open_ab'] = isOpenAb;
    _data['submit_page'] = submitPage;
    _data['jump_xcx'] = jumpXcx;
    _data['view_list'] = viewList;
    _data['open_question'] = openQuestion;
    _data['open_question_bao'] = openQuestionBao;
    _data['icp_record'] = icpRecord;
    _data['slogan'] = slogan;
    _data['is_link'] = isLink;
    _data['is_xcx'] = isXcx;
    _data['is_chat'] = isChat;
    _data['xcx_id'] = xcxId;
    _data['open_chat'] = openChat;
    _data['jump_scan'] = jumpScan;
    _data['have_partner_open'] = havePartnerOpen;
    _data['partner_describe'] = partnerDescribe;
    _data['partner'] = partner;
    _data['application_descriptions'] = applicationDescriptions;
    _data['channel_text'] = channelText?.toJson();
    _data['launch_page'] = launchPage;
    _data['video'] = video?.toJson();
    return _data;
  }
}

class ChannelText {
  ChannelText({
     this.loginTitle ="",
     this.loginSubtitle ="",
     this.appTitle ="",
     this.appSubtitle ="",
     this.listText ="",
     this.detailText ="",
     this.submitText ="",
  });
  late  String loginTitle;
  late  String loginSubtitle;
  late  String appTitle;
  late  String appSubtitle;
  late  String listText;
  late  String detailText;
  late  String submitText;

  ChannelText.fromJson(Map<String, dynamic> json){
    loginTitle = json['login_title'];
    loginSubtitle = json['login_subtitle'];
    appTitle = json['app_title'];
    appSubtitle = json['app_subtitle'];
    listText = json['list_text'];
    detailText = json['detail_text'];
    submitText = json['submit_text'];
  }

  Map<String, dynamic> toJson() {
    final _data = <String, dynamic>{};
    _data['login_title'] = loginTitle;
    _data['login_subtitle'] = loginSubtitle;
    _data['app_title'] = appTitle;
    _data['app_subtitle'] = appSubtitle;
    _data['list_text'] = listText;
    _data['detail_text'] = detailText;
    _data['submit_text'] = submitText;
    return _data;
  }
}

class Video {
  Video({
     this.id = 0,
  });
  late  int id;

  Video.fromJson(Map<String, dynamic> json){
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
   final  _data = <String, dynamic>{};
    _data['id'] = id;
    return _data;
  }
}